'''
Created on Apr 6, 2013

@author: kevinbauer
'''

class Validate(object):

    def __init__(self, r, f):
        self.results = r
        self.facts = f
        
    def compare(self):
        correct = 0
        incorrect = 0
        
        for i in range(len(self.facts)):
            if self.facts[i] == self.results[i]:
                correct += 1
            else:
                incorrect += 1
        
        
        total = correct + incorrect
        percentageCorrect = correct / total
        
        print "Correct: ", correct
        print "Incorrect: ", incorrect
        print "Percentage correct :", percentageCorrect, "%"
        


                